from dataaccess import AlsoLikeData
from common import utility


class AlsoLikeBiz(object):
    def __init__(self):
        pass

    def __ValidateInsert(self, alsolike):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateUpdate(self, alsolike):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateDelete(self, albumID,likeID):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def InsertAlsoLike(self, alsolike):
        self.__ValidateInsert(alsolike)
        alsolikeData = AlsoLikeData.AlsoLikeData()
        alsolikeData.InsertAlsoLike(alsolike)

    def UpdateAlsoLike(self, alsolike):
        self.__ValidateUpdate(alsolike)
        alsolikeData = AlsoLikeData.AlsoLikeData()
        alsolikeData.UpdateAlsoLike(alsolike)

    def DeleteAlsoLike(self, albumID,likeID):
        self.__ValidateDelete(albumID,likeID)
        alsolikeData = AlsoLikeData.AlsoLikeData()
        alsolikeData.DeleteAlsoLike(albumID,likeID)
